home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!datalytics!usenet
- From: Rob Stewart <stew@datalytics.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Newbie question
- Date: Wed, 17 Apr 1996 00:15:45 -0400
- Organization: Datalytics, Inc.
- Message-ID: <31747071.409A@datalytics.com>
- References: <4kq1d5$253@ginger.lei.net> <4kq1k1$253@ginger.lei.net>
- NNTP-Posting-Host: 204.62.224.241
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- sidmvl@pixi.com wrote:
- >
- > oops Email address was messed up it is corrected now. Thanks.
- >
- > I just started a C++ class in school, and I was writing my first project. I
- > have to include a char, double, int, and a string. The program compiled just
- > fine, but when I run the program I get a fatal error that says I have a float
- > overflow. I know I must be missing something extremely basic, but the help
- > files were no help. The input was digit with two decimal places. I used the
- > following statement to define the precision.
- > cout.setf(ios::showpoint);
- > cout.precision (4);
- >
- > Any help would be appreciated.
- >
- > Everyone was once a Newbie........I think.
-
- You'll need to supply more relevant parts of the code. The two
- statements you excerpted merely govern output formatting and
- should have no bearing on your error.
-
- --
- Rob Stewart | My opinions are generally my own. They do
- Datalytics, Inc.| not necessarily reflect those of my employer.
-